<template>
	<view>
		<view style="width: 100%; margin: 0 auto;background-color: #FFFFFF;">
			<view style="width: 90%; height: 760px; margin: 0 auto;background-color: #FFFFFF;">
				<view style="overflow: hidden;">
					<view>
						
					<view style="font-size: 28px;float: left;line-height:52px">{{newsBulletin.newsTitle}}</view>
					</view>
<!-- 					<view @click="uniShare()">
						<u-icon name="share-square" size="30" style="float: right;margin-top: 2px;"></u-icon>
					</view> -->
<!-- 					<u-tag text="详情" plain size="mini" type="warning"
						style="width: 80rpx;margin-top: 5px;float: right;"></u-tag> -->
				</view>

				<view style="margin-top: 35rpx;">
					<image :src="newsBulletin.imgs" style="width: 200px; height: 500px;" ></image>
				</view>
				<view style="text-indent:24px;margin-top: 10rpx;font-size: 20px;color: #555555;line-height: 25px;">
					<text>{{newsBulletin.newsContent}}</text>
				</view>


			</view>
		</view>
	</view>
</template>

<script>

	export default {
		// onBackPress({from}) {
		// 	console.log(from);
		// 	if(from=='backbutton'){
		// 		this.$nextTick(function(){
		// 			uniShare1.hide()
		// 		})
		// 		return uniShare1.isShow;
		// 	}
		// },
		components: {},
		data() {
			return {
				id: 0,
				liste: "",
				eid: "",
				checked: false,
				showUpImg: true,
				jourid: '',
				newsBulletin:{}
					
				
			}
		},
		onLoad(res) {
			console.log(res)
			this.id = res.id;
			console.log("id:::"+this.id)
			this.findxwID();
		},
			
		methods: {
			

			findxwID() {
				uni.request({
					url: "http://localhost:9000/system/system/news-bulletin/findByNewsID/" + this.id,
					method: 'get',
					success: (res) => {
						console.log(res)
						this.newsBulletin = res.data.data.newsBulletin
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	
	page {
		background-color: #fff;
	}
	
	.example-body {
		display: flex;
		padding: 10px 15px;
	}

	/* #ifdef MP-ALIPAY */
	.uni-fav {
		margin-left: 20rpx;
	}

	/* #endif */


	.favBtn {
		margin: 0 20rpx 20rpx 0;
	}


	.example-body-fullWidth {
		padding: 32rpx 0;
	}

	.example-body-first {
		/* #ifndef APP-PLUS-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		justify-content: flex-start;
	}

	.favBtn-nav {
		// left:-50rpx;
	}
</style>
